#include "buffer.h"


namespace vortex
{
    IndexBuffer::IndexBuffer()
    {
        glGenBuffers(1, &ibo);

    }

    void IndexBuffer::Bind()
    {
        glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, ibo);
    }

    void IndexBuffer::Unbind()
    {
        glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0);
    }


}

